/**
 * Copyright &copy; 2016-2017 <a href="http://www.smartfactorycloud.cn">SmartFactory</a> All rights reserved.
 */
package com.wfy.modules.sys.dao;


import com.wfy.common.persistence.CrudDao;
import com.wfy.modules.sys.entity.Menu;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 菜单DAO接口
 *
 * @author SmartFactory
 * @version 2014-05-16
 */
@Mapper
@Repository(value = "menuDao")
public interface MenuDao extends CrudDao<Menu> {

    public List<Menu> findByParentIdsLike(Menu menu);

    public List<Menu> findByUserId(Menu menu);

    public int updateParentIds(Menu menu);

    public int updateSort(Menu menu);

}
